package com.lagou.homework_1_4;

//自定义异常类
public class AgeException extends Exception {

    //异常类的序列化
    static final long serialVersionUID = -3387516993124229948L;

    //创建自定义异常类无参构造
    public AgeException() {
    }

    //创建自定义异常类的有参构造
    public AgeException(String message) {
        super(message);
    }

}
